package com.cloud.jvm.outofmemory;

/**
 * @version v1.0
 * @author: TianXiang
 * @description:
 * @date: 2021/5/31
 */
public class UnableCreateNewThread {
    
    public static void main(String[] args) {
        for(int i = 1; ; i++) {
             System.out.println("=============== i:"+i);
             new Thread(() -> {
                 try {
                     Thread.sleep(Integer.MAX_VALUE);
                 } catch (InterruptedException e) {}
             }).start();
        }
    }
    
}
